<?php

namespace Managers;

class Dream extends \Lib\Model\DoctrineManager{
    
    public function getDreams() {
        $em = $this->getEntityManager();
        $qb = $em->createQueryBuilder()
                ->select('d')
                ->from('Entities\Dream', 'd');
        $result = $qb->getQuery()->getResult();
        return $result;
    }

}